package com.xihuanjun.validate.annotation;

import com.xihuanjun.validate.enums.ValidateType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Validate {

    String value();

    ValidateType[] type() default {ValidateType.INSERT, ValidateType.UPDATE};
}
